const RoomMember = require('../models/RoomMember');

// 群聊用户列表
async function roomMembers(roomId) {
    let members = await RoomMember
        .select('roomId', 'memberId', 'status', 'createdAt')
        .where('roomId', roomId)
        .execute();
    return members;
}

module.exports = {
    roomMembers,
};